import requests
import json
def rebotSendMessage(rebot_url,rebotMessage):
    payload = json.dumps({
    "msgtype": "markdown",
    "markdown": {
        "text": rebotMessage
    }
    })
    headers = {
    'User-Agent': 'Apifox/1.0.0 (https://apifox.com)',
    'Content-Type': 'application/json',
    'Accept': '*/*',
    'Host': 'xz.wps.cn',
    'Connection': 'keep-alive'
    }
    response = requests.request("POST", rebot_url, headers=headers, data=payload)
    if response.text=='{"result":"ok"}':
        print("请求成功")
    else:
        print("请求失败")